<?php
$phoneBasicInfo = $this->getBasicPhoneInfo($_GET['moepid']);
$this->breadcrumbs=array(
	'手机照片列表'=>array('index', 'moepid'=>$_GET['moepid']),
	$phoneBasicInfo['moep_name']
);

$this->menu=array(
	array('label'=>'手机列表', 'url'=>array('mobilePhone/index')),
	array('label'=>'增加手机照片', 'url'=>array('create', 'moepid'=>$_GET['moepid'])),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('mobile-img-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>


<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'mobile-img-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'filterPosition'=>false,
	'columns'=>array(
		array('name'=>'moei_url',
			  'type'=>'raw',
			  'value'=>'CHtml::image($data->moei_url,"" ,array("width"=>"100px", "align"=>"center"))',
			),
		array(
			'class'=>'CButtonColumn',
			'template' => '{delete}',
		),
	),
)); ?>
